<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
</head>
<body>
<div id="app">
  <label><input name="sex" type="radio" value="男" v-model="sex">男</label>
  <label><input name="sex" type="radio" value="女" v-model="sex">女</label>

  <h2>选择的性别是:{{sex}}</h2>
</div>



<script src="../js/vue.js"></script>
<script>
  // 1.创建Vue的实例对象
  const app = Vue.createApp({
    data(){
      return {
        sex: ''
      }
    }
  }).mount('#app');
</script>
</body>
</html>